<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      xinit-1.4.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;24.&nbsp;X Window System Environment
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="xclock.html" title="xclock-1.0.9">Prev</a>
          <p>
            xclock-1.0.9
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="xorg-config.html" title=
          "Xorg-7 Testing and Configuration">Next</a>
          <p>
            Xorg-7 Testing and Configuration
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="installing.html" title=
          "Chapter&nbsp;24.&nbsp;X Window System Environment">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="xinit" name="xinit"></a>xinit-1.4.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to xinit
        </h2>
        <p>
          The <span class="application">xinit</span> package contains a
          usable script to start the xserver.
        </p>
        <p>
          This package is not a part of the Xorg katamari and is provided
          only as a dependency to other packages or for testing the completed
          Xorg installation.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://www.x.org/pub/individual/app/xinit-1.4.1.tar.bz2">https://www.x.org/pub/individual/app/xinit-1.4.1.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.x.org/pub/individual/app/xinit-1.4.1.tar.bz2">ftp://ftp.x.org/pub/individual/app/xinit-1.4.1.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 6d506ab2efc17a08e87778654e099d37
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 178 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 1.5 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          xinit Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="x7lib.html" title="Xorg Libraries">Xorg
          Libraries</a>
        </p>
        <h4>
          Recommended (runtime only)
        </h4>
        <p class="recommended">
          <a class="xref" href="twm.html" title="twm-1.0.10">twm-1.0.10</a>,
          <a class="xref" href="xclock.html" title=
          "xclock-1.0.9">xclock-1.0.9</a>, and <a class="xref" href=
          "xterm.html" title="xterm-353">xterm-353</a> (used in the default
          <code class="filename">xinitrc</code> file)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/xinit">http://wiki.linuxfromscratch.org/blfs/wiki/xinit</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of xinit
        </h2>
        <p>
          Install <span class="application">xinit</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">./configure $XORG_CONFIG --with-xinitdir=/etc/X11/app-defaults &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
ldconfig</kbd>
</pre>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            If starting Xorg from the command line, the default instructions
            above starts Xorg on the current virtual terminal. It may be
            convenient to see Xorg and associated application messages on the
            current virtual terminal, normally tty1, and start the graphical
            environment on the first available unused virtual terminal,
            normally tty7. To do this, set the suid bit on the Xorg
            application as the <code class="systemitem">root</code> user:
          </p>
          <pre class="userinput">
<kbd class="command">chmod u+s $XORG_PREFIX/libexec/Xorg</kbd>
</pre>
          <p>
            At this point you can start Xorg on virtual terminal 7 with
            <span class="command"><strong>startx &lt;client arguments&gt; --
            vt7</strong></span>. Now you can toggle between tty1 and tty7
            with the Ctrl-Alt-F1 and Ctrl-Alt-F7 key combinations.
          </p>
          <p>
            To automatically start Xorg on the first available virtual
            terminal, modify the <span class=
            "command"><strong>startx</strong></span> script as the
            <code class="systemitem">root</code> user with:
          </p>
          <pre class="userinput">
<kbd class=
"command">sed -e '/$serverargs $vtarg/ s/serverargs/: #&amp;/' $XORG_PREFIX/bin/startx</kbd>
</pre>
          <p>
            After this change, the virtual terminal does not need to be
            specified on the startx command line.
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">xinit and startx</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">None</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="startx" name="startx"></a><span class=
                    "term"><span class=
                    "command"><strong>startx</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    initializes an X session.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xinit-bin" name="xinit-bin"></a><span class=
                    "term"><span class=
                    "command"><strong>xinit</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the X Window System initializer.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-21 06:02:56 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="xclock.html" title="xclock-1.0.9">Prev</a>
          <p>
            xclock-1.0.9
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="xorg-config.html" title=
          "Xorg-7 Testing and Configuration">Next</a>
          <p>
            Xorg-7 Testing and Configuration
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="installing.html" title=
          "Chapter&nbsp;24.&nbsp;X Window System Environment">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
